package com.oracle.pojo;

import java.util.Date;

public class Image {
    private Integer id;

    private Integer commodityId;

    private String url;

    private Date createTime;

    public Image(Integer id, Integer commodityId, String url, Date createTime) {
        this.id = id;
        this.commodityId = commodityId;
        this.url = url;
        this.createTime = createTime;
    }

    public Image() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}